Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / GetImage Method / GetImage(Assembly,String,Single,Single[]) Method
The assembly that contain the specified Image resource. If the assembly is null, that mean the specified Image resource is file.
The original path (1x version) of specifed Image resource.
The scale factor of the result Image.
The scale factors of the specified scale versions of the Image resource that would be used to create the result Image.


In This Topic
    GetImage(Assembly,String,Single,Single[]) Method
    In This Topic
    Get the specified scale Image of specified Image resource. The result Image is scaled from nearest existing higher resolution version in the specified scale versions of the Image resource. If there isn't any existing higher resolution version, the result Image is scaled from nearest existing lower resolution version in the specified scale versions of the Image resource.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetImage( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String, _
       ByVal requestScaleFactor As Single, _
       ByVal scaleFactors() As Single _
    ) As Image
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim requestScaleFactor As Single
    Dim scaleFactors() As Single
    Dim value As Image
     
    value = DPIUtils.GetImage(assembly, resourcePath, requestScaleFactor, scaleFactors)

    Parameters

    assembly
    The assembly that contain the specified Image resource. If the assembly is null, that mean the specified Image resource is file.
    resourcePath
    The original path (1x version) of specifed Image resource.
    requestScaleFactor
    The scale factor of the result Image.
    scaleFactors
    The scale factors of the specified scale versions of the Image resource that would be used to create the result Image.

    Return Value

    The scaled Image.
    See Also